/*
 * @Date: 2021-12-14 09:59:45
 * @LastEditors: LeeKing
 * @LastEditTime: 2021-12-14 11:29:01
 * @FilePath: \admin\src\router\modules\commodity.js
 */
import Layout from '@/layout'
export default {
  path: '/commodity',
  component: Layout,
  name: 'Commodity',
  redirect: '/commodity/goods',
  meta: {
    title: '商品管理',
    icon: 'el-icon-s-goods'
  },
  children: [
    {
      path: 'goods',
      name: 'Goods',
      component: () => import('@/views/commodity/goods/index'),
      meta: { title: '商品列表', icon: 'el-icon-menu' }
    },
    {
      path: 'params',
      name: 'Params',
      component: () => import('@/views/commodity/params/index'),
      meta: { title: '分类参数', icon: 'el-icon-menu' }
    },
    {
      path: 'categories',
      name: 'Categories',
      component: () => import('@/views/commodity/categories/index'),
      meta: { title: '商品分类', icon: 'el-icon-menu' }
    }
  ]
}
